package test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component
public class Driver {

    @Autowired
    @Qualifier("A")
    Run run;
    public void work(){
        run.run();
        System.out.print("去工作");
    }
}
